using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Sinacor.Infra.Service.Validation;
using Sinacor.Infra.Service.Common;
using Sinacor.Servico.Infra.Licensing.BusinessEntity;
using Sinacor.Servico.Infra.Licensing.ResourceAccess;

namespace Sinacor.Servico.Infra.Licensing.BusinessLogic
{
    /// <summary>
    /// Business Logic Licensing
    /// </summary>
    public class LicenseBL : BaseBusinessLogic
    {
        #region Construtor
        public LicenseBL()
            : base()
        {

        }
        #endregion

        #region Métodos

        public LicenseBE GetLicense()
        {
            // Dados de licenciamento.
            LicenseBE _licenseBE;

            // Consumo da ResourceAccess para obter a licença 
            LicenseRA _licenseRA = new LicenseRA();
            _licenseBE = _licenseRA.GetLicensing();

            // Retorno dos dados de licença
            return _licenseBE;
        }

        #endregion

    }
}
